package com.lottery.material.entity.article;

import com.lottery.material.entity.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Description：赛事信息表
 * Created by 朱正磊 on 2019-04-09 10:17
 */
@Entity
@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "material_competition_info")
public class CompetitionInfo extends BaseEntity {

    private static final long serialVersionUID = -8282009710934106830L;

    @Column(columnDefinition = "int(1) comment '赛事类型（1：竞彩足球；2：竞彩篮球）'")
    private Integer competitionType;

    @Column(columnDefinition = "varchar(50) comment '接口提供方id'")
    private String openId;

    @Column(columnDefinition = "varchar(50) comment '联赛'")
    private String league;

    @Column(columnDefinition = "varchar(20) comment '比赛日期'")
    private String playingDate;

    @Column(columnDefinition = "varchar(20) comment '比赛时间'")
    private String playingTime;

    @Column(columnDefinition = "varchar(50) comment '主队'")
    private String homeTeam;

    @Column(columnDefinition = "varchar(50) comment '客队'")
    private String visitingTeam;

    @Column(columnDefinition = "varchar(10) comment '比分'")
    private String score;

    @Column(columnDefinition = "int(1) comment '状态（1、未完成，2、已完成）'")
    private Integer state;

}
